import type { MockMethod } from "vite-plugin-mock";

const menuList = {
  code: 200,
  msg: "获取菜单列表成功",
  data: [
    { name: "首页", path: "/" },
    { name: "书籍", path: "/book" },
    { name: "TDesign-Chat", path: "/chat" },
    { name: "NLP", path: "/nlp" },
    { name: "编辑器", path: "/edit" },
    { name: "IFrame", path: "/iframe" },
    { name: "博客", path: "/blog" },
    { name: "Trigger", path: "/trigger" },
    { name: "Menu", path: "/menu" },
    { name: "ChatAgent", path: "/chat-agent" },
    { name: "游戏", path: "/game" },
    { name: "Epub", path: "/epub" },
    { name: "DB", path: "/db" },
    { name: "Web3D", path: "/web3d" },
    { name: "关于", path: "/about" },
    { name: "Echart", path: "/echart" },
  ],
};

export default [
  {
    url: "/api/v1/menus",
    method: "get",
    response: () => {
      return menuList;
    },
  },
] as MockMethod[];
